package com.qiaofang.service;

import com.qiaofang.common.response.CommonResponse;
import com.qiaofang.entity.*;
import com.qiaofang.entity.OtherCompany;
import com.qiaofang.entity.Premises;
import com.qiaofang.entity.PremisesDynamic;
import com.qiaofang.entity.PremisesDynamicExternal;

import java.util.List;

/**
 * 渠道-V10交互
 */
public interface FHEstateService {

    /**
     * 推送楼盘
     *
     * @param premisesList
     * @param otherCompanyList
     * @return
     */
    CommonResponse pushPremisesToV10(List<Premises> premisesList, List<OtherCompany> otherCompanyList);


    /**
     * 同步删除v10楼盘
     * @param premises
     * @return
     */
    CommonResponse deletePremisesToV10(Premises premises, List<PremisesRelationExternal> premisesExternalList);

    CommonResponse deleteReportToV10(CustomerPremises report, OtherCompany otherCompany, ReportExternal reportExternal);

    CommonResponse pushDynamicToV10(PremisesDynamic premisesDynamic, List<PremisesDynamicExternal> externalList, List<PremisesRelationExternal> premisesExternalList);

}
